function [n] = nrn2datac()
% nrn2datac converts the output from neuron to a datac file
% calls the 2 routines to do it: neuron_read and mat2datac
%
[voltage, current, DFILE] = neuron_read;
if(isempty(DFILE))
   disp('Unable to read neuron output files');
   return;
end
filename = [DFILE.fullfile];
err = mat2datac(filename, voltage, current, DFILE);
